import Taro from '@tarojs/taro-rn';
import React from 'react';
import { Component } from "@tarojs/taro-rn";
import { View, Image } from "@tarojs/components-rn";
import indexStyleSheet from "./index_styles";
import bg_09 from '../../assets/img/bg_09.png';
import bg_10 from '../../assets/img/bg_10.png';
import logo_01 from '../../assets/img/logo_01.png';
import logo_02 from '../../assets/img/logo_02.png';
import { getRuntime, servicePhoneNumber } from "../../utils/common";
// 建务库中心
var _styleSheet = indexStyleSheet;
let Library = class Library extends Component {
  constructor() {
    super();
  }
  componentWillMount() {
    Taro.setNavigationBarTitle({ title: '建务库中心' });
  }
  handelRouter(url = '/pages/index/index') {
    window.location.href = url;
  }
  makePhone() {
    getRuntime().makePhoneCall(servicePhoneNumber);
  }
  render() {
    return <View style={_styleSheet["library-index"]}>
        <View style={_styleSheet["library-item"]}>
          <Image src={bg_09} style={_styleSheet["library-bg"]} />
          <View style={_styleSheet["library-content"]}>
            <Image src={logo_02} style={_styleSheet["library-logo"]} />
            <View style={_styleSheet["library-desc"]}>
              鲁班建业通：信用奖惩、业绩真假 、项目经理在建、人员注册情况、招标文件符合的公司、同时具备多个业绩的公司、项目经理带类似业绩的公司等。
            </View>
            <View onClick={this.handelRouter.bind(this, 'https://m.lubanjianye.com/')} style={_styleSheet["btn-in"]}>立即进入</View>
          </View>
        </View>

        <View style={_styleSheet["library-info"]}>
         
          <View onClick={this.makePhone.bind(this)}> VIP客服电话：{servicePhoneNumber}
          </View>
        </View>

        <View style={_styleSheet["library-item"]}>
          <Image src={bg_10} style={_styleSheet["library-bg"]} />
          <View style={_styleSheet["library-content"]}>
            <Image src={logo_01} style={_styleSheet["library-logo"]} />
            <View style={_styleSheet["library-desc"]}>
              建设库：建筑行业招投标大数据，综合服务提供商。
            </View>
            <View onClick={this.handelRouter.bind(this, 'https://m.jiansheku.com/')} style={_styleSheet["btn-in"]}>立即进入</View>
          </View>
        </View>
        <View style={_styleSheet["library-info"]}>
          
          <View onClick={this.makePhone.bind(this)}> VIP客服电话：{servicePhoneNumber}
          </View>
        </View>
      </View>;
  }
};

export default Library;